<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let m = new Map();
        m.set('name', '小明')
        m.set('change', function() {
            console.log('我们可以改变你');
        })

        let key = {
            school: 'ATGUIGU'
        }
        m.set(key, ['北京', '上海', '深圳'])
        m.delete('name')
        console.log(m.size);
        console.log(m.get('change'));
        //清空
        m.clear()
        console.log(m.get(key));
    </script>
</body>

</html>